package com.cy.pj.goods.dao;

import com.cy.pj.goods.pojo.Goods;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodsDao {
    List<Goods> findAll();

    @Delete("delete from tb_goods where id=#{id}")
    int deleteById(Long id);

    int deleteObjects(Integer... ids);
}
